package com.yykj.user.center.server.repository;

import com.yykj.user.center.server.model.MedicalRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/10/20 22:24
 */
@Repository
public interface MedicalRecordRepository extends JpaRepository<MedicalRecord, String>, JpaSpecificationExecutor<MedicalRecord> {

    MedicalRecord findByConsultationId(String consultationId);

    List<MedicalRecord> findByConsultationIdIn(ArrayList<String> consultationInfoOrderIds);

    MedicalRecord findFirstByConsultationId(String id);
}
